<?php
$this->title = "Profle - Basic Info Edit";
$this->headTitle($this->title);
?>	
		
		<!-- start content -->
		<div id="inside" class="content">
			
		<!--  Glavno meni -->
			<div id="InnerMenu">
				<?php $session = Zend_Registry::get('session');?>
				<ul >
					<li style=" display: inline; "><a href="<?php echo $this->url(array('controller'=>'Profile','action'=>'index'))."?id=". $this->escape($session->user['id']) ?>">Profile</a></li>
					<li style=" display: inline; "><a href="<?php echo $this->url(array('controller'=>'Profile','action'=>'basic'))."?id=". $this->escape($session->user['id']) ?>">Basic Info</a></li>
					<li style=" display: inline; "><a href="<?php echo $this->url(array('controller'=>'Profile','action'=>'medical'))."?id=". $this->escape($session->user['id']) ?>">Medical Info</a></li>					
					<li style=" display: inline; "><a href="<?php echo $this->url(array('controller'=>'Profile','action'=>'interests'))."?id=". $this->escape($session->user['id']) ?>">Interests</a></li>					
				</ul>
				
				
				<div id="BasicEdit">
				<form id="form_basic_edit" name="basic" method="post">
								
					<div id="div_PermisionsBasic">
						<?php if ($session->user['id'] == $this->Query){?>					
							<label for="Permisions">Permitions</label><br>
							<input type="radio" name="rbl_permitions" value="1" <?php $permitions =(int)$this->basicInfo_user['ViewPermitions'];if ($permitions ==1){  ?> checked="checked" <?php } ?> ><label for="Only_me">Only Me</label> 
							<input type="radio" name="rbl_permitions" value="2" <?php $permitions =(int)$this->basicInfo_user['ViewPermitions'];if ($permitions ==2){  ?> checked="checked" <?php } ?>><label for="Doctors">Doctors</label>
							<input type="radio" name="rbl_permitions" value="3" <?php $permitions =(int)$this->basicInfo_user['ViewPermitions'];if ($permitions ==3){  ?> checked="checked" <?php } ?>><label for="Friends_and_Doctors">Friends and Doctors</label> 
							<input type="radio" name="rbl_permitions" value="4" <?php $permitions =(int)$this->basicInfo_user['ViewPermitions'];if ($permitions ==4){  ?> checked="checked" <?php } ?>><label for="All">All</label> 
						<?php }?> 
					</div>
						
						<label for="Name">First name:</label><input type="text" id="txt_FirstName" name="txt_FirstName" value="<?php echo $this->basicInfo_user['FirstName']; ?>"> <br>
						<label for="Name">Last name:</label><input type="text" id="txt_LastName" name="txt_LastName" value="<?php echo $this->basicInfo_user['LastName']; ?>"> <br>
						<label for="Name">Gender:</label>
														<select id="ddl_Gender" name="ddl_Gender">
														  <option <?php $gender =(int)$this->basicInfo_user['Gender'];if ($gender ==1){  ?> selected="selected" <?php } ?> value="1">Male</option>
														  <option <?php $gender =(int)$this->basicInfo_user['Gender'];if ($gender ==2){  ?> selected="selected" <?php } ?> value="2">Female</option>														  
														</select><br>
						<label for="Name">Birthday:</label><input type="text" id="txt_Birthday" name="txt_Birthday" value="<?php 
																													$birthday = new Zend_Date($this->basicInfo_user['Birthday']);																		
																													$birthday=$birthday->toString("dd-MM-YYYY");	
																													echo $birthday; ?>"> <br>
						<label for="Name">Education:</label><input type="text" id="txt_Education" name="txt_Education" value="<?php echo $this->basicInfo_user['Education']; ?>"> <br>
						<label for="Name">About:</label><br><textarea id="txt_About" name="txt_About" rows="3" cols="50" title="About" ><?php echo $this->basicInfo_user['About']; ?></textarea> <br>
						<label for="Name">Country:</label><input type="text"  name="txt_Country" id="txt_Country"  value="<?php echo $this->basicInfo_user['Country']; ?>"> <br>
						<label for="Name">City:</label><input type="text" id="txt_City" name="txt_City" value="<?php echo $this->basicInfo_user['City']; ?>"> <br>
						<input type="submit" value="Save" id="btn_SaveBasic" name="btn_SaveBasic"/>
					
				</form>
				</div>
			
			</div>
		</div>
		<!-- end content -->
